@extends('layouts.default')
@section('title','新用户注册')
@section('content')
  <div class="offset-md-2 col-md-8">
      <div class="card">
          <div class="card-header text-center">
            <h5>注册</h5>
          </div>
        <div class="card-body">
          @include('shared.errors')
          <form method="POST" action="{{route('users.store')}}">
            {{ csrf_field() }}
              <div class="mb-3">
                  <label for="name">姓名:</label>
                  <input id="name" type="text" name="name" class="form-control" value="{{old('name')}}">
              </div>
            <div class="mb-3">
              <label for="email">邮箱:</label>
              <input id="email" type="email" name="email" class="form-control" value="{{old('email')}}">
            </div>
            <div class="mb-3">
              <label for="password">密码:</label>
              <input id="password" type="password" name="password" class="form-control" value="{{old('password')}}">
            </div>
            <div class="mb-3">
              <label for="password_confirmation">密码确认:</label>
              <input id="password_confirmation" type="password" name="password_confirmation" class="form-control" value="{{old('password_confirmation')}}">
            </div>
            <button type="submit" class="btn btn-primary">注册</button>
          </form>
        </div>
      </div>
  </div>
@stop
